<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{$BASE_V}layout.css" rel="stylesheet" type="text/css" />
<title>TBlog博客系统</title>
<script type="text/javascript" src="{$BASE}js/tools.js"></script>
<script type="text/javascript" src="{$BASE_V}article.js"></script>
</head>
<body>

<div style="z-index: 1; right: 20px; top: 30px; color: rgb(255, 255, 255); position: absolute; display: none;" id="loading"><img src="{$BASE_V}images/loader.gif"></div>

<div id="main">
  <div class="main_box">    
<!--{if $action == 'add' }-->    
    <h2>内容发布向导</h2>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="t_list">
      <tbody>
      <tr>
        <td class="td_left" width="7%">频道ID</td>
        <td class="td_left" width="30%">频道内容模型</td>
        <td class="td_left" width="50%">操作选项</td>        
      </tr>
      <!--{loop $channeltype $k $v}-->
       <tr>
        <td class="td_left">$k</td>
        <td class="td_left">$v</td>
        <td class="td_left"><a href="{PHP_SELF}?m=category">管理栏目</a> | <a href="{PHP_SELF}?m=archives.arclist&channelid=$k">管理内容</a> | <a href="{PHP_SELF}?m=archives.catgoto&channelid=$k">发布内容</a></td>        
      </tr>
      <!--{/loop}-->
    </table>
<!--{/if}-->
    
<!--{if $action == 'index' }-->
    <h2>内容列表</h2>
<form name="list_form" method="POST" action="{PHP_SELF}?m=article.del&page={$pageCurrent}" onSubmit="return checkDelForm();">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="t_list">
      <tbody><tr>
      <th>&nbsp;</th>
        <th width="10%">编号</th>
        <th width="20%">类别</th>
        <th width="40%">标题</th>
        <th width="17%">时间</th>        
        <th width="10%">管理</th>
      </tr>
	  <!--{if $ErrorMsg}-->
	  <tr>
	    <td height=23 colspan=7 class=forumRowHigh align=center>$ErrorMsg</td>
	  </tr>
	  <!--{/if}-->      
      <!--{loop $rs $k $v}-->
      <tr onmouseout="this.style.background='#fff'" onmouseover="this.style.background='#f6f9fd'" style="background: none repeat scroll 0% 0% rgb(255, 255, 255);">
      
      <td><input type="checkbox" value="$v[article_id]" name="id_a[]"></td>
      <td>$v[article_id]</td>
      <td><a href="{PHP_SELF}?m=article.add&amp;aid=$v[article_id]">$v[cat_name]</a></td>
      <td class="td_left">$v[title]</td> 
      <td>$v[time]</td> 
      <td><a href="{PHP_SELF}?m=article.add&amp;aid=$v[article_id]">修改</a>| <a href="{PHP_SELF}?m=article.del&amp;aid=$v[article_id]">删除</a></td>
      </tr>
      <!--{/loop}-->      
      <tr style="background: none repeat scroll 0% 0% rgb(248, 248, 248);">
              <td><input type="checkbox" name="select_all_btn" onclick="select_fx();"></td>
              <td class="td_left" colspan="6">
            <input type="submit" onclick="return confirm('确定要执行这次操作吗？')" class="btn02" value="删除所选" name="Submit">
            <input type="hidden" value="del" name="action">
      </td></tr>
      </tbody></table>
      </form>
      {$page}
<!--{/if}-->     
	</div>
</div>
</body>
</html>